package DesignPatern.A20_状态模式.QSB.A01_基础模式;

/**
 * @Author: Du
 * @Date: 2021/8/6 9:30
 */
public class ClosingState extends LiftState
{
    @Override
    public void open()
    {
        super.context.setLiftState(Context.open);
        super.context.getLiftState().open();
    }
    
    @Override
    public void close()
    {
        System.out.println("电梯门关闭");
    }
    
    @Override
    public void run()
    {
        super.context.setLiftState(Context.run);
        super.context.getLiftState().run();
    }
    
    @Override
    public void stop()
    {
        super.context.setLiftState(Context.stop);
        super.context.getLiftState().stop();
    }
}
